package ua.net.gm.server.condition;

/**
 *
 * @author Yason
 */
public class OrConditionChain extends ConditionChain
{
    @Override
    public boolean permit(IConditionContext context)
    {
        boolean res = false;
        for (ICondition cond : getSubConditions())
        {
            if (cond.permit(context))
            {
                res = true;
                break;
            }
        }
        return res;
    }
}
